package com.zyb.system.shop.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zyb.base.domain.BaseDomain;
import com.zyb.system.employee.domain.Employee;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Arvin
 * @since 2023-01-07
 */
@Data
public class Shop extends BaseDomain{
    /*
    * name：列名
    * orderNum：第几列
    * isImportField：
    * */

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系方式" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @Excel(name = "入驻时间", orderNum = "3", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd", isImportField = "true_st", width = 30)
    private Date registerTime;
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "商铺状态",orderNum = "4", width = 30, replace = { "待审核_1", "审核通过_2" ,"已激活_3", "驳回_4"}, isImportField = "true_st")
    private Integer state;
    @Excel(name = "地址" ,orderNum = "5", width = 60, isImportField = "true_st")
    private String address;
    @Excel(name = "头像地址" ,orderNum = "6", width = 60, isImportField = "true_st")
    private String logo;
    private Long adminId;
    private Employee admin;
}
